package cn.vawn.exam.mapper;

import cn.vawn.exam.entity.LocalUniterm;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface LocalUnitermMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(LocalUniterm record);

    int insertSelective(LocalUniterm record);

    LocalUniterm selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(LocalUniterm record);

    int updateByPrimaryKey(LocalUniterm record);

    //条件查询单项
    List<LocalUniterm> selectLocalUniterm(@Param("name")String name,
                                          @Param("code")String code,
                                          @Param("startTime")Date startTime,
                                          @Param("endTime")Date endTime);

    //查询所有单项
    List<LocalUniterm> selectAllLocalUniterm();

    List<LocalUniterm> getLocalUnitermByIds(@Param("localUnitermIds") Integer[] localUnitermIds);
}